﻿using System.Windows;
using System.Windows.Input;
using BLL.Utils;
using CloudClipboardSync.Model;
using DAL.Clipboard;

namespace CloudClipboardSync.Windows
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void ListItemPreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            (sender as FrameworkElement).With(x => x.DataContext as ClipboardContent).Do(x => ProgramData.Instance.SelectedClipboard = x);
        }
    }
}
